package zhai.docking.alipay.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Created by 翟凤玺
 * @package zhai.docking.alipay.prop
 * @project-name zhai-docking-alipay
 * @description 雪花算法配置
 * @create-datetime 2019-11-26 16:02
 */
@Data
@ConfigurationProperties(prefix = "snowflake")
public class SnowflakeProperties {

    /** 工作机器ID(0~31) */
    private long workerId;

    /** 数据中心ID(0~31) */
    private long datacenterId;

}